package com.mowh.gof23.structural.patterns.bridge;

/**
 * @author mowh1gd
 * @create 2023/10/25 8:10
 */
public class Main {
    public static void main(String[] args) {
        Display display1 = new Display(new StringDisplayImpl("Hello, China."));//使用不同的实现
        Display display2 = new CountDisplay(new StringDisplayImpl("Hello, World."));
        CountDisplay display3 = new CountDisplay(new StringDisplayImpl("Hello, Universe."));
        display1.display();
        display2.display();
        display3.display();
        display3.multiDisplay(5);//使用新的功能
    }
}
